import {FILTER_ACTIVE} from '../contains';

const initialState={
    arr:["all","active","complete"],
    active:"all"
}

export default function filter(state=initialState,action){
    switch(action.type){
        case FILTER_ACTIVE:
            return {
                ...state,
                active: action.active
            }
        default:
            return state
    }
}